//
//  RootViewController.m
//  DetailTest
//
//  Created by wp w on 12-6-20.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "RootViewController.h"
#import "DLog.h"
#import "RootView.h"

@implementation RootViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
        
//    UIView *view = [[RootView alloc] initWithFrame:[[UIScreen mainScreen]bounds]];
//    self.view = view;
//    [view release];
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
}

#pragma mark - Rotate
/*
 Rotate过程
 是否可以旋转
 将要旋转
 将要重新布局所有子view
 子view--布局所包含空间
 完成布局所有子view
 将要启动旋转动画
 旋转完成
 */
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    DLogFun();
    //是否可以旋转
    return YES;
}

-(void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
{
    DLogFun();
}

-(void)viewWillLayoutSubviews
{
    DLogFun();
}

-(void)viewDidLayoutSubviews
{
    DLogFun();
}

-(void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration
{
    DLogFun();
}

-(void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
{
    DLogFun();
}


@end
